/**
 * Created by Nealyang on 17/2/25.
 */
const express = require('express');
const router = express.Router();
const Users = require('../../controller/users')

//删除操作
router.get('/del', function (req, res) {
    Users.delUser(req, res)
});

//修改操作
router.get('/getById', function (req, res, next) {
    Users.modUser(req, res, next)
});

//查询操作
router.get('/', function (req, res, next) {
    Users.searchUser(req, res, next)
});

//修改操作
router.post('/modified', function (req, res, next) {
    Users.modified(req, res, next)
});

//新增操作
router.post('/add', function (req, res, next) {
    Users.addUser(req, res, next)
});

module.exports = router;